<template>
<!-- demo eg https://www.cnblogs.com/tuspring/p/9801603.html -->
   <countTo :startVal='startVal' :endVal='endVal' :duration='3000'></countTo>
</template>

<script>
 import countTo from 'vue-count-to';
  export default {
    components: { countTo },
    data () {
      return {
        startVal: 0,
        endVal: 5000000
      }
    }
  }
</script>

<style  scoped>
span{
    font-size: 40px;
}
</style>